HTMLify
style.css
Views: 9 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | * { margin: 0; padding: 0; box-sizing: border-box; } body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: blueviolet; font-family: sans-serif; } .container { width: 400px; padding: 2em; } input { width: 100%; padding: 10px; display: block; outline: none; } .output { margin-top: 2em; } /* JavaScript */ .todo { border-left: 4px solid rgb(34, 187, 51); color: rgb(75, 75, 75); display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em; font-size: 1em; background-color: white; padding: 10px 20px; } .delete { color: blueviolet; font-weight: bold; cursor: pointer; } .message-container { position: absolute; bottom: 1.5rem; left: 2rem; background-color: white; padding: 20px; transform: translateX(0); visibility: hidden; transition: transform 1s ease; } .success { transform: translateX(100px); visibility: visible; background-color: rgb(34, 187, 51); color: white; } .error { transform: translateX(100px); visibility: visible; background-color: rgb(223, 71, 89); color: #fff; } |